<?php
class	Usuarios_model	extends	CI_Model	{

				function	ValidarUsuario($email,	$password)	{
								
								$this->load->database();
								$query	=	$this->db->where('email',$email);
								$query	=	$this->db->where('pass',	md5($password));
								$query	=	$this->db->get('usuarios');
								return	$query->row();
				}

}
